{% extends "../theme/base_edit.html" %}


{% block edit %}

<div class="panel panel-black">
    <div class="panel-heading">
        添加
    </div>
    <div class="panel-body">
        <form action="" method="post" class="form-horizontal">

            <input type=hidden name=slug value="{{ kwd['slug'] }}">


            <fieldset>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="title">标题</label>

                    <div class="col-sm-10">
                        <input class="form-control" type="text" id="title" name="title"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label" for="slug">Slug</label>

                    <div class="col-sm-10">
                        <input class="form-control" type="text" id="slug" name="slug" cols="76" readonly
                               value="{{ kwd['slug'] }}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label" for="cnt_md">内容</label>

                    <div class="col-sm-10">
                        <textarea class="form-control" rows=16 id="cnt_md" name="cnt_md" cols="76"></textarea>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label" for="sub1"></label>

                    <div class="col-sm-10">
                        <input id="sub1" type="submit" value="添加数据" class="btn btn-primary">
                    </div>
                </div>

            </fieldset>

        </form>

    </div>
</div>
{% end %}
